package cn.llyong.rpc.common.config;

import cn.llyong.rpc.common.utils.LocalHostUtil;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: lvyong
 * @date: 2020年07月22日 16:02
 */
@Component
@ConfigurationProperties(prefix = "monkey.rpc.discovery")
public class MonkeyRpcProperties {

    private String appName;
    private String groupName = "default_group";
    private String registryAddr;
    private String serverIp = LocalHostUtil.getLocalIP();
    private String serverPort;
    private String balance;

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getRegistryAddr() {
        return registryAddr;
    }

    public void setRegistryAddr(String registryAddr) {
        this.registryAddr = registryAddr;
    }

    public String getServerIp() {
        return serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public String getServerPort() {
        return serverPort;
    }

    public void setServerPort(String serverPort) {
        this.serverPort = serverPort;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }
}
